package bilibili.poly_.canshu;

public class Worker extends Employee {
    public Worker() {
    }

    public Worker(String name, double month_salary) {
        super(name, month_salary);
    }

    // 特有方法
    public void work() {
        System.out.println("员工：" + getName() + "正在上班");
    }

    // 重写getAnnual方法
    public double getAnnual() {
        return super.getAnnual();
    }
}
